package com.ai.module.business.mapper;

import com.ai.module.user.domain.entity.ImageGroundEntity;
import com.ai.module.user.domain.vo.ImageGroundVo;
import com.ai.module.user.domain.vo.UserImageVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface ImageGroundMapper extends BaseMapper<ImageGroundEntity> {

    @Select("select * from image_ground where source_type = #{sourceType} order by id desc" )
    Page<ImageGroundVo> imageGrounds(Page<UserImageVo> imageGroundEntityPage, @Param("sourceType") String sourceType);

}
